﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CollegeRevApp.DataModels
{
    /// <summary>
    /// Review class for users to comment and rate colleges
    /// </summary>
    public class Review
    {
        public int Id { get; set; }
        public int CollegeId { get; set; }
        //public virtual College College { get; set; }

        public string Comment { get; set; }
        public Rating EducationQuality { get; set; }
        public Rating CampusLife { get; set; }
        public Rating SafetySecurity { get; set; }
        public Rating JobPlacement { get; set; }

        public Review()
        {
        }
        public Review(int collegeId, string comment, Rating educationQuality, Rating campusLife, Rating safetySecurity, Rating jobPlacement)
        {
            CollegeId = collegeId;
            Comment = comment;
            EducationQuality = educationQuality;
            CampusLife = campusLife;
            SafetySecurity = safetySecurity;
            JobPlacement = jobPlacement;
        }

        public void SetProperties(Review review)
        {
            Comment = review.Comment;
            EducationQuality = review.EducationQuality;
            CampusLife = review.CampusLife;
            SafetySecurity = review.SafetySecurity;
            JobPlacement = review.JobPlacement;
        }

    }
}
